package com.tuanzi.loan.web.bean.family.largeamount;

import com.google.common.collect.Lists;
import com.tuanzi.loan.business.constants.DictionaryCode;
import com.tuanzi.loan.vo.request.family.largeamount.LoanLargeAmountBindRequest;
import com.tuanzi.loan.vo.response.family.largeamount.LoanLargeAmountBindResponse;
import com.tuanzi.loan.web.configuration.JSFListingBean;
import com.tuanzi.loan.web.lazy.family.largeAmount.LoanLargeAmountVipBindLazyDateModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.faces.bean.ViewScoped;
import java.util.List;

/**
 * User: liangZongXi
 * Create time: 11:21 2019/5/22
 * Description:
 */
@Data
@Component
@ViewScoped
@EqualsAndHashCode(callSuper = true)
public class LoanLargeAmountVipBindBean extends JSFListingBean<LoanLargeAmountBindRequest, LoanLargeAmountBindResponse> {
    private static final long serialVersionUID = 2218073317816045935L;

    @PostConstruct
    private void init(){
        $ = new LoanLargeAmountBindRequest();
        lazyDataModel = new LoanLargeAmountVipBindLazyDateModel($);
    }

    public void onReset(){
        init();
    }


    @Override
    protected List<String> getDictionaryCodes() {
        return Lists.newArrayList(DictionaryCode.LOAN_LARGE_AMOUNT_VIP_GRADE);
    }
}
